package cn.peach.basic.util;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class PageList<T> {
    // 总条数
    private Integer totals = 0;
    // 当前页数据
    private List<T> rows = new ArrayList<>();

    public PageList(Integer totals, List<T> rows) {
        this.totals = totals;
        this.rows = rows;
    }
    public PageList() {

    }
}
